<?php

namespace App\Models\Log;

use App\Models\BaseModel;

/**
 * App\Models\Log\RefundLog
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property string $out_trade_no 订单号
 * @property string $trade_no 第三方交易号
 * @property string $buyer_id 第三方用户ID
 * @property int $type 退款类型 支付宝:1 微信:2
 * @property string $total_amount 退款金额
 * @property string $refund_time 退款时间
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
 * @property-read int|null $notifications_count
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog query()
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog whereBuyerId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog whereOutTradeNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog whereRefundTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog whereTotalAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog whereTradeNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|RefundLog whereUserId($value)
 * @mixin \Eloquent
 */
class RefundLog extends BaseModel {

	protected $table = 'refund_log';
	protected $primaryKey = 'id';
	public $timestamps = true;
	protected $fillable = [
		'user_id',
		'out_trade_no',
		'trade_no',
		'buyer_id',
		'type',
		'total_amount',
		'refund_time',
	];

}
